package com.example.baseframework

import android.content.Context
import com.xh.baselibrary.BaseApplication

class DemoApplication : BaseApplication() {
    companion object Instance {
        var instance: DemoApplication? = null
        val baseInstance: DemoApplication by lazy { instance!! }
        val context: Context by lazy { baseInstance.applicationContext }
    }

    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        instance = this
    }
}